<template>
  <div>
    <van-nav-bar
      title="房屋管理"
      left-arrow
      @click-left="$router.back()"
    />
   <HouseList v-show="isShow"></HouseList>
  </div>
</template>

<script>
import HouseList from '@/views/Second/House/Child/HouseList'
import { getRentHoustListApi } from '@/api'
export default {
  data () {
    return {
      isShow: false
    }
  },
  components: {
    HouseList
  },
  async created () {
    this.$toast.loading()
    const res = await getRentHoustListApi(this.$store.state.token)
    console.log(res)
    this.$store.state.houseList = res.data.body
    this.isShow = true
    this.$toast.clear()
  }
}
</script>

<style lang="scss" scoped>

</style>
